package iscript.airFramework.util 
{
	import flash.filesystem.File;
	/**
	 * ...
	 * @author raymond
	 */
	public class FolderHelper 
	{
		
		public function FolderHelper() 
		{
			
		}
		
		static public function getFolderList(file:File):Vector.<File> {
			 var folders:Vector.<File> = new Vector.<File>();
			 var arr:Array = file.getDirectoryListing();
			     for each( var item:File in arr) {
				    if (item.isDirectory) {
						folders.push(item);
						}
			     }			 
			 return folders;
	      }
    }
}